package com.mediator.pattern;

/**
 * @author chenchen
 * @description 租客
 * @date 2023/9/26 10:32
 */
public class Renter extends Person{
    @Override
    void setMediator(Mediator mediator) {
        this.mediator = mediator;
    }

    @Override
    void sendMessage(String message) {
        mediator.send(message, this);
    }

    @Override
    void getMessage(String message) {
        System.out.println("租客获取到消息：" + message);
    }
}
